﻿using Budgetsch.Web.EntityModel;
using Budgetsch.Web.Services;

namespace Budgetsch.ViewModels.Savings
{
    public class EditSavingVM : SavingDetailVMBase
    {
        public EditSavingVM(BudgetschDomainContext context_, Saving editedSaving_) : base(context_)
        {
            Saving = editedSaving_;
        }

        public override void Commit()
        {
            m_context.SubmitChanges();
        }
    }
}
